package com.lm.paymentadmin.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author liu2dog
 */
@Mapper
@Repository
public interface BankMapper {
    /**
     * 查询银行
     * @return
     */
    List<Map<String,Object>> getBankList();

    /**
     * 根据code查询银行信息
     * @param code
     * @return
     */
    @Select("select bank_code as bankCode,bank_name as bankName from t_bank\n" +
            "where bank_code = #{code}")
    Map<String,Object> findBankByCode(String code);
}
